package org.jks.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

import com.google.gson.annotations.Expose;

/*
 * 履历表*/

@Entity
@Table(name = "DeviceRe")
public class DeviceRe {
	@Id
	@GeneratedValue(generator = "increment")
	@GenericGenerator(name = "increment", strategy = "increment")
	@Expose
	private long Id;
	@ManyToOne
	@JoinColumn(name = "Device", referencedColumnName = "Id")
	@Expose
	private Device Device; // 对应的无人机

	@Temporal(TemporalType.TIMESTAMP)
	@Expose
	private Date FlightTime;// 飞行时间

	@Expose
	private String Type; // 飞行类型

	@Expose
	private long Count; // 架次
	@Expose
	private long Mileage; // 里程
	@Expose
	private long Duration; // 时长
	@Expose
	private String Info;// 起降点信息
	@Expose
	private String ExceptionInfo;// 系统异常信息

	public long getId() {
		return Id;
	}

	public void setId(long id) {
		Id = id;
	}

	public Device getDevice() {
		return Device;
	}

	public void setDevice(Device device) {
		Device = device;
	}

	public Date getFlightTime() {
		return FlightTime;
	}

	public void setFlightTime(Date flightTime) {
		FlightTime = flightTime;
	}

	public String getType() {
		return Type;
	}

	public void setType(String type) {
		Type = type;
	}

	public long getCount() {
		return Count;
	}

	public void setCount(long count) {
		Count = count;
	}

	public long getMileage() {
		return Mileage;
	}

	public void setMileage(long mileage) {
		Mileage = mileage;
	}

	public long getDuration() {
		return Duration;
	}

	public void setDuration(long duration) {
		Duration = duration;
	}

	public String getInfo() {
		return Info;
	}

	public void setInfo(String info) {
		Info = info;
	}

	public String getExceptionInfo() {
		return ExceptionInfo;
	}

	public void setExceptionInfo(String exceptionInfo) {
		ExceptionInfo = exceptionInfo;
	}

}
